<?php

namespace Common\Common;

use Think\Controller;

abstract class BaseController extends Controller
{
	const RETURN_SUCCESS = 0;
	const RETURN_FAILED = 1;
	
	public function jsonReturen($msg, $status = self::RETURN_FAILED, $data = null)
	{
		$data = array(
			'msg' => $msg,
			'status' => $status,
			'data' => $data
		);
		$this->ajaxReturn($data);
	}
}
